var obj = {
    get id() {
        return parseInt(Math.random() * 100);
    }
}

function getId(obj) {

    return obj.id;
}

console.log(getId(obj));
console.log(getId(obj));
